﻿@using CodeBuilder.Models.TemplateModels
@inherits RazorEngine.Templating.TemplateBase<CodeBuilder.Models.TemplateModels.DtoFileModel>
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Abp.AutoMapper;

namespace @(Model.Namespace).@(Model.DirName).Dto
{
    [AutoMapFrom(typeof(@(Model.Name)))]
    public class @(Model.Name)ListDto
    {
        public long Id { get; set; }

        @foreach (ClassProperty classProperty in Model.ClassPropertys)
        {
            if (classProperty.ClassAttributes != null && classProperty.ClassAttributes.Count > 0)
            {
                foreach (var classAttribute in classProperty.ClassAttributes)
                {
         <text>@Raw(@classAttribute.NameValue)</text>
                }
         <text>public @classProperty.PropertyType @classProperty.Name { get; set; }</text>
            }
        }
    }
}
